<!--
代码为自动生成 Created by www.magicalcoder.com
 如果你改变了此类 read 请将此行删除
 欢迎加入官方QQ群:323237052
-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head  th:include="magicalcoder/v103/include/head :: commonHead('模块编辑')"/>

<body class="childrenBody layui-hide">
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-card-header">

            </div>
            <div class="layui-card-body">
                <form class="layui-form">
                    <div class="layui-form-item security_edit_form_param_id">
                        <label class="layui-form-label">主键</label>
                        <div class="layui-input-block">
                            <input type="text" disabled="true" class="layui-input" name="id"  placeholder="主键自动生成，无需手动编辑,如果重置则变成增加数据"/>
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_moduleCategoryId">
                        <label class="layui-form-label">一级菜单</label>
                        <div class="layui-input-block">
                        <select name="moduleCategoryId"  data-url="admin/sys_module_category_rest/search" data-id="id" data-text-fields="moduleCategoryName" class="magicalcoder-foreign-select2 layui-input" lay-ignore="true" lay-verify="magicalCoderVerify" magicalcoder-verify="" data-value=""  placeholder="请选择一级菜单" data-limit="20"><option value=""></option></select>
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_moduleTitle">
                        <label class="layui-form-label">二级菜单标题</label>
                        <div class="layui-input-block">
                        <input type="text" class="layui-input" name="moduleTitle" placeholder="请输入二级菜单标题" lay-verify="magicalCoderVerify" magicalcoder-verify="" value="" />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_moduleName">
                        <label class="layui-form-label">二级菜单唯一值</label>
                        <div class="layui-input-block">
                        <input type="text" class="layui-input" name="moduleName" placeholder="建议使用全小写表名称" lay-verify="magicalCoderVerify" magicalcoder-verify="|minLength=0" value="" />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_moduleUrl">
                        <label class="layui-form-label">二级菜单地址</label>
                        <div class="layui-input-block">
                        <input type="text" class="layui-input" name="moduleUrl" placeholder="请输入二级菜单地址" lay-verify="magicalCoderVerify" magicalcoder-verify="" value="admin/page_v2/把我改成小写表名称/list" />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_sortNum">
                        <label class="layui-form-label">排序</label>
                        <div class="layui-input-block">
                        <input type="text" class="layui-input" name="sortNum" placeholder="请输入排序" lay-verify="magicalCoderVerify" magicalcoder-verify="" value="" />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_ifShow">
                        <label class="layui-form-label">是否显示</label>
                        <div class="layui-input-block">
                        <input type="checkbox" name="ifShow" lay-skin="switch" lay-text="" lay-verify="magicalCoderVerify" magicalcoder-verify=""  />
                        </div>
                    </div>
                    <div class="layui-form-item security_edit_form_param_ifShow">
                        <label class="layui-form-label">自动配置权限明细</label>
                        <div class="layui-input-block">
                            <input type="checkbox" name="helpConfigPermit" lay-skin="switch" lay-text="" lay-verify="magicalCoderVerify" magicalcoder-verify=""  />
                        </div>
                    </div>
                    <!--把下面的按钮移动到form外面 键盘回车事件就取消了 -->
                    <div class="layui-form-item ">
                        <div class="layui-input-block">
                            <button class="layui-btn security_edit_form_operate_save" lay-submit="" lay-filter="save">立即提交</button>
                            <button type="reset" class="layui-hide layui-btn layui-btn-primary" >重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <div th:replace="magicalcoder/v103/include/main-js :: commonMain" />
    <script type="text/javascript"  th:src="@{/assets/admin/sys_module/edit.js}"></script>
</body>
</html>
